package org.zjx.command.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.zjx.account.enums.Sects;
import org.zjx.command.entity.Address;
import org.zjx.route.entity.Location;

import java.util.List;

@Data
@NoArgsConstructor
public class RouteProperties {
    private long version; //道具缓存数据版本（没有变化（单组东西没用完/没有买新东西）无需更改）

    private String playerId;
    private Sects sects;

    private Address address;
    private Address endAddress;

    private List<Integer> inventoryItemIds; //背包
    private List<Integer> extendedItemIds;  //行囊

    public Location getLocation(Address address) {
        return new Location(address.getCity(),address.getX(),address.getY());
    }
}
